
package utils;

import java.lang.reflect.InvocationTargetException;

import org.apache.commons.beanutils.BeanUtils;

import Quotation.Quotation;
import bean.QuotationBean;

/** 

 * @author yanchuanfeng

 * @version 创建时间：2022年3月1日 下午2:42:57 

 *  

 */

public class DtoToBeanUtils {
	public static QuotationBean quotationToBean(Quotation dto){
		QuotationBean bean = new QuotationBean();
		try {
			BeanUtils.copyProperties(bean, dto);
			bean.setTs(TradeDate.getDateStr());
			System.out.println(bean.getStkName());
			bean.setId(UIDGenerator.next());
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return bean;
	}
}
